﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.Purchase.Model.RemoteModel;
using Truron.Purchase.Utility;

namespace Truron.Purchase.Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Purchase_OuterNotePayRelation")]
	public class Purchase_OuterNotePayRelation : BaseData
	{
		public int OuterNoteId { get; set; }
		public int PayNoteId { get; set; }
		public decimal MatchMoney { get; set; }
		public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId;
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
